<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <title>Title</title>
    <script type="application/javascript" src="../js/jquery-easyui-1.4.1/jquery.min.js"></script>
    <script>


        /*

         $.ajax({
         url:"http://localhost:8080/json/json.jsp",
         type:"get",
         success:function(data){

         var a=eval('('+data+')');

         alert(a.abc);// 123 json数据请求成功!
         }
         });


         */

        /*
        function  fun(data){
            alert(data.abc);
        }*/

        //jquery解决方案
        $.ajax({
            url:"http://localhost:8080/json/json.jsp",
            type:"get",
            dataType:"jsonp",
            success:function(data){

               // var a=eval('('+data+')');

                alert(data.abc);// 123 json数据请求成功!
            }
        });

    </script>
    <!--
    <script type="text/javascript" src="http://localhost:8080/json/json.jsp?callback=fun"></script>
    -->
</head>
<body>





</body>
</html>